package com.technodo.ue;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.LinearLayout;

import com.technodo.R;
import com.technodo.utils.StringConstants;

public class SquareLayout extends LinearLayout {

	public SquareLayout(Context context) {
		super(context);
	}

	public SquareLayout(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public SquareLayout(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
		super.onMeasure(widthMeasureSpec, heightMeasureSpec);
//		Log.d("Custom Square","value of width is "+getMeasuredWidth() + " and height is "+getMeasuredWidth());
		setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
	}



}

